import http from "./http"
import axios from "axios"

//登陆
export const subLogin = (data) => {
    return http({
        url: "login",
        method: "post",
        data: data,
    })
}

//获取卖座的首页热门推荐数据
export const getWeather = (data) => {
    return axios({
        url: "https://devapi.heweather.net/v7/weather/now?location=116.331398,39.897445&&key=ee28675b82cc42789ab3b7695787839a",
        method: "get",
        data: data,
    })
}